<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>Document</title>
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/base.css">
    <link rel="stylesheet" href="/css/example_detail.css">
    <script src="/js/miniprogram.js"></script>
    <script>
        var docEl = document.documentElement
        docEl.style.fontSize = (docEl.clientWidth / 750 * 100) + 'px'
    </script>
</head>
<body>
    <header class="header">
        <div class="logo"><img src="/img/logo.png"></div>
        <span class="nav-logo" onclick="toggleNav(event)"><img src="/img/nav-logo.png"></span>
        <div class="nav-warp" id="nav-warp">
            <a href="/" class="nav-cell">
                <span class="nav-cell-icon"><img src="/img/nav-icon-1.png"></span>
                <span class="nav-cell-txt">首页</span>
            </a>
            <a href="/brand_desc.html" class="nav-cell">
                <span class="nav-cell-icon"><img src="/img/nav-icon-2.png"></span>
                <span class="nav-cell-txt">品牌介绍</span>
            </a>
            <a href="/product_desc.html" class="nav-cell">
                <span class="nav-cell-icon"><img src="/img/nav-icon-3.png"></span>
                <span class="nav-cell-txt">产品介绍</span>
            </a>
            <a class="nav-cell" onclick="toggleNavProduct(this, event)" id="nav-cell-sub">
                <span class="nav-cell-icon"><img src="/img/nav-icon-4.png"></span>
                <span class="nav-cell-txt">产品报价</span>
            </a>
            <a href="/dealer_login.html" class="nav-cell">
                <span class="nav-cell-icon"><img src="/img/nav-icon-5.png"></span>
                <span class="nav-cell-txt">经销商登录</span>
            </a>
            <a href="/quailty_search.html" class="nav-cell">
                <span class="nav-cell-icon"><img src="/img/nav-icon-6.png"></span>
                <span class="nav-cell-txt">质保查询</span>
            </a>
            <a href="/example.html" class="nav-cell">
                <span class="nav-cell-icon"><img src="/img/nav-icon-7.png"></span>
                <span class="nav-cell-txt">案例展示</span>
            </a>
            <a href="/news.html" class="nav-cell">
                <span class="nav-cell-icon"><img src="/img/nav-icon-8.png"></span>
                <span class="nav-cell-txt">资讯活动</span>
            </a>
            <a href="/store.html" class="nav-cell">
                <span class="nav-cell-icon"><img src="/img/nav-icon-9.png"></span>
                <span class="nav-cell-txt">合作门店</span>
            </a>
        </div>
        <div class="sub-nav" id="sub-nav" style="display: none;">
            <a href="/quoted_category_transparent.html" class="nav-cell">
                <span class="nav-cell-txt">透明膜报价</span>
            </a>
            <a href="/quoted_category_color.html" class="nav-cell">
                <span class="nav-cell-txt">CA改色膜报价</span>
            </a>
        </div>
        <div class="search"><img src="/img/icon-search.png" alt=""></div>
        <script>
            function toggleNav(event) {
                event.stopPropagation()
                var dom = document.getElementById('nav-warp')
                var classes = dom.getAttribute('class').split(' ')
                if (classes.indexOf('active') > -1) {
                    dom.setAttribute('class', classes.filter(i => i !== 'active').join(' '))
                } else {
                    classes.push('active')
                    dom.setAttribute('class', classes.join(' '))
                }
                hideeNavProduct(document.getElementById('nav-cell-sub'))
            }
            document.addEventListener('click', (e) => {
                var dom = document.getElementById('nav-warp')
                var classes = dom.getAttribute('class').split(' ')
                if (classes.indexOf('active') > -1) {
                    dom.setAttribute('class', classes.filter(i => i !== 'active').join(' '))
                }
                hideeNavProduct(document.getElementById('nav-cell-sub'))
            })
            // 点击产品报价
            function toggleNavProduct(dom, e) {
                e.stopPropagation()
                var classes = dom.getAttribute('class').split(' ')
                if (classes.indexOf('active') > -1) {
                    hideeNavProduct(dom)
                } else {
                    showNavProduct(dom)
                }
            }
            function showNavProduct (dom) {
                var classes = dom.getAttribute('class').split(' ')
                classes.push('active')
                document.getElementById('sub-nav').style.display = 'block'
                dom.setAttribute('class', classes.join(' '))
            }
            function hideeNavProduct (dom) {
                var classes = dom.getAttribute('class').split(' ')
                classes = classes.filter(i => i !== 'active')
                document.getElementById('sub-nav').style.display = 'none'
                dom.setAttribute('class', classes.join(' '))
            }
        </script>
    </header>
    <div class="example-detail">
        <div class="line"><img src="/img/line.png" width="100%"></div>
        <div class="toggle" id="toogle">
            <div class="btn active" data-target="content-img">图片</div>
            <div class="btn" data-target="content-video">视频</div>
        </div>
        <div class="toggle-content content-img">
            <h4 class="title">保时捷 卡宴</h4>
            <div class="desc">
                <div class="desc-title">描述：</div>
                <p>原材料来自美国佛罗里达州，三涂层TPU附上自动修复功能， 超强的十大功能：</p>
                <p>一：在原厂漆上提升58%的光亮度；</p>
                <p>二：强抗污垢功能，免受外界空调水，酸雨，鸟粪，树果渍的入侵；</p>
                <p>三：抗击打能力，免受砂石、泥土的对车漆的损伤；</p>
                <p>四：在116度环境下，膜料无变色、不起皱；</p>
                <p>五：在负35度环境下，磨面无龟裂，不缩边；</p>
                <p>六：膜面8.5mil超厚保护漆面；</p>
                <p>七：划痕自动修复膜面；</p>
                <p>八：柏油、化清剂强力测试，膜面无损伤；</p>
                <p>九：自动呼吸TPU，不易变黄；</p>
                <p>十：质保10年之久；</p>
            </div>
            <div class="imgs">
                <img src="/img/example-detail-img.png" width="100%">
            </div>
        </div>
        <div class="toggle-content content-video" style="display: none;">
            <div style="height: 4rem; text-align: center;">
                <iframe src="https://tv.sohu.com/s/sohuplayer/iplay.html?bid=187331546&amp;autoplay=false&amp;disablePlaylist=true" allowfullscreen="true" scrolling="no" width="100%" height="100%" frameborder="0"></iframe>
            </div>
        </div>
        <div class="share">
            <span><img src="/img/example-detail-share.png" ></span>
            <span>分享案例</span>
        </div>
        <script>
            document.getElementById('toogle').addEventListener('click', function(e) {
                var targetDom = e.target
                var btnArr = [].slice.call(this.children)
                btnArr.forEach(function(element){
                    var classes = element.getAttribute('class').split(' ')
                    classes = classes.filter(i => i !== 'active')
                    element.setAttribute('class', classes.join(' '))
                })
                var classes = targetDom.getAttribute('class').split(' ')
                classes.push('active')
                targetDom.setAttribute('class', classes.join(' '))
                
                var contentArr = [].slice.call([].slice.call(document.getElementsByClassName('toggle-content')))
                contentArr.forEach(function(element){
                    element.style.display = 'none'
                })
                document.getElementsByClassName(targetDom.getAttribute('data-target'))[0].style.display = 'block'
            })
        </script>
    </div>
    <footer class="footer">
        <div class="link">
            <a href="/quailty_search.html" class="link-cell">质保查询</a>
            <a href="/dealer_login.html" class="link-cell">经销商登录</a>
            <a href="/quoted_part.html" class="link-cell">产品报价</a>
            <a href="/product_desc.html" class="link-cell">产品介绍</a>
        </div>
        <div class="phone">服务热线：<a href="tel:4001 618 615">4001 618 615</a></div>
        <div class="company">运营商:拜亚(山东)薄膜有限公司</div>
        <div class="beian">粤ICP备05108632号- 13</div>
    </footer>
    <div class="mini-menu">
        <a href="/" class="cell active">
            <div class="icon"></div>
            <div class="name">首页</div>
        </a>
        <a href="/product_desc.html" class="cell">
            <div class="icon"></div>
            <div class="name">产品</div>
        </a>
        <a href="/quoted.html" class="cell">
            <div class="icon"></div>
            <div class="name">报价</div>
        </a>
        <a href="/example.html" class="cell">
            <div class="icon"></div>
            <div class="name">案例</div>
        </a>
        <a href="/mine.html" class="cell">
            <div class="icon"></div>
            <div class="name">我的</div>
        </a>
    </div>
</body>
</html>